package com.hmall.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.io.Resource;

import java.time.Duration;

@Data
@ConfigurationProperties(prefix = "hm.jwt")
/**
 * JWT 相关配置，如密钥位置、别名、过期时间等
 */
public class JwtProperties {
    private Resource location;
    private String password;
    private String alias;
//    Token的持续时间
    private Duration tokenTTL = Duration.ofMinutes(10);
}
